<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.util.Date" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
    <title></title>
</head>
<body>
<s:if test="immortalList">
    <table>
        <tr>
            <th align="left">First Name</th>
            <th align="left">Last Name</th>
            <th align="left">Telephone</th>
            <th align="left">eMail</th>
            <th align="left">Registered Date</th>
        </tr>
    <%
                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
    %>
        <s:iterator value="immortalList" var="immortal">
            <s:set value="#immortal.created" var="created"/>
            <% String date = sdf.format(new Date(Long.valueOf(request.getAttribute("created").toString()))); %>
            <tr>
                <td><s:property value="#immortal.firstname"/> </td>
                <td><s:property value="#immortal.lastname"/></td>
                <td><s:property value="#immortal.telephone"/></td>
                <td><s:property value="#immortal.email"/></td>
                <td><%= date%></td>
            </tr>
        </s:iterator>
    </table>
</s:if>
</body>
</html>